#! /bin/bash
#xcall mkdir -p /aa /bb
#1、判断参数是否传入
if [ $# -lt 1 ]
then
	echo "必须传入待执行命令..."
	exit
fi
#2、执行命令
for host in hadoop102 hadoop103 hadoop104
do
	echo "==========$host=========="
	ssh $host "$*"
done